## Project: Lario
## Author: Salwan Asaad
## Main

import pyenkido.startup
import pyenkido.game
from pyenkido.preferences import *
import lario.scenes.introduction
import lario.scenes.langchoice
import lario.scenes.mainmenu

class LarioStartup(pyenkido.startup.Startup):
    def prepareScenes(self):
        self.sceneMgr.add_scene("Intro", lario.scenes.introduction.IntroScene(self.sceneMgr, self.screen))
        self.sceneMgr.add_scene("LanguageChoice", lario.scenes.langchoice.LangChoiceScene(self.sceneMgr, self.screen))
        self.sceneMgr.add_scene("MainMenu", lario.scenes.mainmenu.MainMenuScene(self.sceneMgr, self.screen))
        self.sceneMgr.change_scene("Intro")

Preferences = pyenkido.game.GamePreferences()
Preferences.load("game.cfg")
Preferences.mouseVisible = False
Preferences.iconFile = "res/window_icon.png"
Game = pyenkido.game.Game(Preferences)
Lario = LarioStartup(Game)
Game.run()

